import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk';

// import reducerMath from '../reducers/math.js'
import rootReducers from '../reducers/rootReducers.js';



//创建store对象
// const store = createStore(rootReducers);     //原始的创建

//新的创建,用到thunk中间件
const store = createStore(rootReducers, applyMiddleware(thunk));

export default store